package com.yhn.bubblevideo.user.config;

import jakarta.annotation.Resource;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.stereotype.Component;

/**
 * @author yhn
 * @version 1.0
 * @description
 * @date 2024/12/17 15:40
 */
@Component
public class SpringProducer {

    @Resource
    private RocketMQTemplate rocketMQTemplate;

    public void sendMsg(String msg) {
        rocketMQTemplate.convertAndSend("bubble-video_topic", msg);
    }
}
